package com.iot.modbus.factory.impl;

import com.iot.modbus.factory.SessionFactory;
import com.iot.modbus.factory.WriterSessionFactory;
import com.iot.modbus.writer.WriterSession;
import com.iot.modbus.writer.impl.SimpleWriterSession;
import com.serotonin.modbus4j.ip.IpParameters;

public class SimpleWriterSessionFactory  implements WriterSessionFactory {
    @Override
    public WriterSession createWriterSession(IpParameters ipParameters) {
        return new SimpleWriterSession(SessionFactory.get(ipParameters)) ;
    }
}
